package com.liao.tensquare.admin.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author long
 * @since 2021-09-29 11:07:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role implements Serializable {
    private static final long serialVersionUID = -88766297884251107L;

    private Integer id;

    private String name;

    private String code;

    private String des;

    private Date createTime;

    private Date updateTime;

    private List<Permission> permissions;
    /**
    * 0:启用，1未启用
    */
    private Object isDisable;
    /**
    * 0：未删除，1：已删除
    */
    private Object isDelete;

//    public void setCreateTime(Date createTime) {
//        this.createTime = DateUtils.format(DateUtils.FormatType.type2,createTime);
//    }
}
